<template>
  <h1>计算器</h1>
  <hr>
  <input type="text" v-model="a">
  <input type="text" v-model="b">
  <button @click="c=Number(a)+Number(b)">+</button>
  <button @click="c=Number(a)-Number(b)">-</button>
  <button @click="c=Number(a)*Number(b)">*</button>
  <button @click="c=Number(a)/Number(b)">/</button>
  <div>结果是{{c}}</div>
</template>
<script setup>
  import {ref} from "vue";
  const a = ref('');
  const b = ref('');
  const c = ref('');
</script>


<style scoped>

</style>